package com.myblog.config;

import org.springframework.web.multipart.commons.CommonsMultipartResolver;

public class MultipartUploadConfig {

    public CommonsMultipartResolver multipartResolver() {
        CommonsMultipartResolver multipartResolver = new CommonsMultipartResolver();
        multipartResolver.setMaxUploadSize(8192);
        multipartResolver.setDefaultEncoding("utf-8");
        return multipartResolver;
    }
}
